package com.ruoyi.camp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.camp.mapper.CCampFacilityMapper;
import com.ruoyi.camp.domain.CCampFacility;
import com.ruoyi.camp.service.ICCampFacilityService;

/**
 * 营地服务设施Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Service
public class CCampFacilityServiceImpl implements ICCampFacilityService 
{
    @Autowired
    private CCampFacilityMapper cCampFacilityMapper;

    /**
     * 查询营地服务设施
     * 
     * @param cfId 营地服务设施主键
     * @return 营地服务设施
     */
    @Override
    public CCampFacility selectCCampFacilityByCfId(String cfId)
    {
        return cCampFacilityMapper.selectCCampFacilityByCfId(cfId);
    }

    /**
     * 查询营地服务设施列表
     * 
     * @param cCampFacility 营地服务设施
     * @return 营地服务设施
     */
    @Override
    public List<CCampFacility> selectCCampFacilityList(CCampFacility cCampFacility)
    {
        return cCampFacilityMapper.selectCCampFacilityList(cCampFacility);
    }

    /**
     * 新增营地服务设施
     * 
     * @param cCampFacility 营地服务设施
     * @return 结果
     */
    @Override
    public int insertCCampFacility(CCampFacility cCampFacility)
    {
        return cCampFacilityMapper.insertCCampFacility(cCampFacility);
    }

    /**
     * 修改营地服务设施
     * 
     * @param cCampFacility 营地服务设施
     * @return 结果
     */
    @Override
    public int updateCCampFacility(CCampFacility cCampFacility)
    {
        return cCampFacilityMapper.updateCCampFacility(cCampFacility);
    }

    /**
     * 批量删除营地服务设施
     * 
     * @param cfIds 需要删除的营地服务设施主键
     * @return 结果
     */
    @Override
    public int deleteCCampFacilityByCfIds(String[] cfIds)
    {
        return cCampFacilityMapper.deleteCCampFacilityByCfIds(cfIds);
    }

    /**
     * 删除营地服务设施信息
     * 
     * @param cfId 营地服务设施主键
     * @return 结果
     */
    @Override
    public int deleteCCampFacilityByCfId(String cfId)
    {
        return cCampFacilityMapper.deleteCCampFacilityByCfId(cfId);
    }
}
